﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BUS;
using DAL;
using DTO;

namespace WEBSITE_BANDEAL.Admin
{
    public partial class KhachHang_Insert : System.Web.UI.Page
    {
        KHACH_HANGBUS khb = new KHACH_HANGBUS();
        protected void Page_Load(object sender, EventArgs e)
        {
            lit_title.Text = "Quản lý dahh sách khách hàng";
        }

        protected void btn_Insert_Click(object sender, EventArgs e)
        {
            KHACH_HANG k = new KHACH_HANG();
            k.TenKhachHang = TenKhachHang.Value;
            k.MatKhau = MatKhau.Value;
            k.Email = Email.Value;
            k.DiaChi = DiaChi.Value;
            k.DienThoai = DienThoai.Value;
            khb.KhachHang_Them(k);
            Response.Redirect("khachhang_list.aspx");
        }
    }
}